<!-- search area   -->
<div class="row searchLineWrap">
<form class="form-horizontal" method="post" action="${cxt!}/platform/menu/list" id="searchForm">

	<div class="row">
		    <div class="col-md-5">
		      <div class="form-group">
		         <label  class="col-md-4 control-label">${_res["systemManage.menuName"]}</label>
		         <div class="col-md-8">
		            <input type="text" class="form-control" name="menu.l_name" placeholder="${_res['systemManage.menuName']}" value="${paramMap['menu.l_name']}"/>
		         </div>
		       </div>
		    </div>
		    
		    <div class="col-md-5">
		      <div class="form-group">
		         <label  class="col-md-4 control-label">${_res["systemManage.menuNameen"]}</label>
		         <div class="col-md-8">
		            <input type="text" class="form-control" name="menu.l_nameen" placeholder="${_res['systemManage.menuNameen']}" value="${paramMap['menu.l_nameen']}"/>
		         </div>
		       </div>
		    </div>		
	</div>
	<div class="row">	        
		    <div class="col-md-5">
		      <div class="form-group">
		         <label  class="col-md-4 control-label">${_res["systemManage.menuLink"]}</label>
		         <div class="col-md-8">
		            <input type="text" class="form-control" name="menu.l_url" placeholder="${_res['systemManage.menuLink']}" value="${paramMap['menu.l_url']}"/>
		         </div>
		       </div>
		    </div>
	 
	 		<div class="col-md-5">
		      <div class="form-group">
		         <label  class="col-md-4 control-label">${_res["systemManage.menuSystem"]}</label>
		         <div class="col-md-8">
		          	  <#dict type="select" name="menu.f_systemid"  dictCode="SYSTEM_CODE" value="${paramMap['menu.f_systemid']}"/>
		         </div>
		       </div>
		    </div>
		    
		    <div class="col-md-2">
		        <div class="form-group">
		          <button type="button" class="btn btn-primary pull-left" onclick="ajaxForm('content','searchForm')">
		          <i class="fa fa-search m-l-sm m-r-xs"></i>${_res["system.search"]}</button>
		        </div>
		    </div>
	    </div>
  </div>
</form>
</div>
<!-- search area end  -->

<div class="row searchLineWrap">
	<% if(hasPrivilegeUrl("menuAdd")){ %>
		<p><a href="javascript:void(0);" onClick="ajaxContent('/platform/menu/add/a');" class="btn btn-primary pull-left">${_res["systemManage.addMenu"]}</a><div class="clearfix"></div></p>
	<% } %>
	<table class="table table-bordered table-hover">
	    <thead>
	        <tr>
	            <th>${_res["systemManage.menuName"]}</th>
	            <th>${_res["systemManage.menuNameen"]}</th>
	            <th>${_res["systemManage.menuLink"]}</th>
	            <th>${_res["systemManage.menuSup"]}</th>
	            <th>${_res["systemManage.menuSystem"]}</th>
	            <th>${_res["system.priority"]}</th>
	            <th>${_res["system.operator"]}</th>
	       </tr>
	    </thead>
	    <tbody>
	    	<% for(menu in splitPage.list){ %>
		      <tr >
		            <td>${menu.name!}</td>
		            <td>${menu.nameen!}</td>
		            <td>${menu.url!}</td>
		            <td>${menu.parentMenu.name!}</td>
		            <td><#dict type="lable" value='${menu.systemid!}' dictCode="SYSTEM_CODE"/></td>
		            <td>${menu.priority!}</td>
		            <td>
		            	<% if(hasPrivilegeUrl("menuView")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/platform/menu/view/${menu.id!}');">${_res["system.view"]}</button>
		               	<% } %>
		               	<% if(hasPrivilegeUrl("menuEdit")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxContent('/platform/menu/update/e-${menu.id!}')">${_res["system.edit"]}</button>
		               	<% } %>
		               	<% if(hasPrivilegeUrl("menuDelete")){ %>
		               		<button type="button" class="btn btn-sm btn-link" onClick="ajaxDelete('/platform/menu/delete/${menu.id!}')">${_res["system.delete"]}</button>
		            	<% } %>
		            </td>
		      </tr>
		     <% } %>
	    </tbody>
	</table>
	<div id="splitPageDiv">
		<#page formId="searchForm"  />
	</div>
	<#nav />
</div>		
